python: Adjust xc_physinfo wrapper for updated virt_caps bits
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 29 Apr 2019 22:42:52 +0000 (00:42 +0200)
committerWei Liu <wei.liu2@citrix.com>
Mon, 13 May 2019 10:28:27 +0000 (11:28 +0100)
commit569e848a488563555578fd5d89cb5739ba62e765
treeb91f052dee200823ac50dfe1d938bf5d6416765a
parent31d72a0fd4773e8df77b4c46eec5c65b3cd265e0
python: Adjust xc_physinfo wrapper for updated virt_caps bits

Commit f089fddd94 "xen: report PV capability in sysctl and use it in
toolstack" changed meaning of virt_caps bit 1 - previously it was
"directio", but was changed to "pv" and "directio" was moved to bit 2.
Adjust python wrapper to use #defines for the bits values, and add
reporting of both "pv_directio" and "hvm_directio".

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/python/xen/lowlevel/xc/xc.c